<!doctype html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    
</head>

<body>
    <script>
        let obj1 = {
            name:'zs'
        }

        // let obj2 = obj1 ;
        // obj2.name = 'ls'

        let obj2 = Object.assign({},obj1) ;
        obj2.name = 'ls' ;

        


        console.log(obj1,obj2);


    </script>
</body>

</html>